/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="TIPOSCONSULTAS")
public class TiposConsultasProteu implements Serializable{

    @Id
    @Column(name="TIC_IN_CODIGO")
    private Integer ticInCodigo;
    @Column(name="TIC_ST_DESCRICAO")
    private String ticStDescricao;

    public Integer getTicInCodigo() {
        return ticInCodigo;
    }

    public void setTicInCodigo(Integer ticInCodigo) {
        this.ticInCodigo = ticInCodigo;
    }

    public String getTicStDescricao() {
        return ticStDescricao;
    }

    public void setTicStDescricao(String ticStDescricao) {
        this.ticStDescricao = ticStDescricao;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final TiposConsultasProteu other = (TiposConsultasProteu) obj;
        if (this.ticInCodigo != other.ticInCodigo && (this.ticInCodigo == null || !this.ticInCodigo.equals(other.ticInCodigo))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 97 * hash + (this.ticInCodigo != null ? this.ticInCodigo.hashCode() : 0);
        return hash;
    }


}
